package com.kdl.webconfig.enums;

/**
 * @Author wcj
 * @Date 2022/07/06
 * @Description 图片类型枚举
 */
public enum PicTypeEnum {
    LBT("LBT", "轮播图"),
    LDCPW("LDCPW", "亮点产品位"),
    HXCPW("HXCPW","核心产品位"),
    CONTACTUS("CONTACTUS","联系我们"),
    FAQS("FAQS","FAQS"),
    GYGS("GYGS","about seewo"),
    NEWS_BANNER("NEWS_BANNER","NEWS_BANNER"),
    NEWS("NEWS","NEWS")
    ;

    private String code;

    private String desc;

    PicTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static PicTypeEnum getEnumByStatus(Integer status) {
        if (null == status) {
            return null;
        }
        for (PicTypeEnum item : values()) {
            if (item.getCode().equals(status)) {
                return item;
            }
        }
        return null;
    }

}
